package com.tanhua.server.exception;

import com.tanhua.model.vo.ErrorResult;
import lombok.Data;

/*
* 定义一个异常类
* */
@Data
public class BusinessException extends RuntimeException{
    private ErrorResult errorResult;

    public BusinessException(ErrorResult errorResult){
        super(errorResult.getErrMessage());
        this.errorResult=errorResult;
    }
}
